package com.yuewen.test2;

import org.springframework.stereotype.Service;

/**
 * Created by liwei.b on 2017/6/22.
 */
@Service
public class PersonServiceBean implements PersonServer{

    @Override
    public void save(String name) {

        System.out.println("我是save方法");
        //  throw new RuntimeException();
    }

    @Override
    public void update(String name, Integer id) {

        System.out.println("我是update()方法");
    }

    @Override
    public String getPersonName(Integer id) {

        System.out.println("我是getPersonName()方法");
        return "xxx";
    }

}